<?php  if (!defined("IS_INITPHP")) exit("Access Denied!");  /* INITPHP Version 1.0 ,Create on 2015-11-14 16:49:53, compiled from D:\chendeben\zendwork\huodongxun/app/template/huodongxun/home/user/userinfo.html */ ?>
<!DOCTYPE html   "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户主页</title>
<link href="/static/css/wrap.css" rel="stylesheet" type="text/css" />
<link href="/static/css/common.css" rel="stylesheet" type="text/css" />
<link href="/static/css/header.css" rel="stylesheet" type="text/css" />
<link href="/static/css/sec_main_yhzy.css" rel="stylesheet" type="text/css" /> 
<link href="/static/css/footer_zpy.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>


<script type="text/javascript">
	
	$(document).ready(function() {
		setY_contentHeight();
	});
	//用于计算准确高度
	function setY_contentHeight(){
		var sheight = $(".l_item").length;
		if(sheight>2){
			var zheight = parseInt(sheight)*660;
			 
			$(".y_content").css("height",zheight);
		}
	}
</script>
</head>
<body>
<!--头部  开始 -->
<div class="header_top">
  <div class="header">
    <!-- 导航栏  开始-->
    <div class="nav">
      <div class="logo"> </div>
      <!-- 菜单 -->
      <div class="menu">
        <ul>
          <li class="mitem"> <a href="/" >首页</a> </li>
          <li class="mitem"> <a href="/home/user/active" >活动</a> </li>
          <li class="mitem"> <a href="#" >直播</a> </li>
          <li class="mitem"> <a href="#" >关注</a> </li>
        </ul>
      </div>
      <!-- 登录 -->
        <div class="login">  
				<?php if ($username!="") { ?>
				 <a href="/home/user/info"><?php echo $username;?></a>
				 <?php } else { ?>
				 <a href="login.html">登录</a>| <a href="login.html">注册</a>
				 <?php } ?> 
				 </div>
      <!-- 发送活动 -->
       <div class="send_activity"> 
	  	<a href="/home/user/add_active">发布活动 </a>
	  
	  </div>
    </div>
    <!-- 导航栏  结束-->
  </div>
</div>
<!--头部  结束 -->
<!--身体  开始 -->
<div class="y_content_bg"></div>
<div class="y_content">
	
  <div class="layout_all"> 
  	<!-- 用户介绍  开始 --->
  	 <div class="layout_01">
	 	<div class="photo">
			<img src="<?php echo $data['thumbnail'];?>"/>
		</div> 
	 	<div class="name">
			<?php echo $data['nick'];?>
		</div>
	 	<div class="name_info">
			<?php echo $data['introduce'];?>
		</div>
		<div class="cz">
			<input type="button" class="yh_btn" value="私信" />   <input type="button" class="yh_btn" value="关注" />
		</div>
	 </div>
	 
 	 <!-- 用户介绍  结束--->
	 
	 <?php foreach ($active as $k=>$v) { ?>
	 <div class="layout_02">
	 	<!-- 一个帖子 开始--->
	 	<div class="l_item">
			<div class="left_date">
				<div class="left_dd"> <!-- 存日期 -->
					<?php echo date("d",$v['add_time']) ?>
				</div>
				<div class="left_mm"> <!-- 存月份 -->
					<?php echo date("m",$v['add_time']) ?>
				</div>
			</div>
			<div class="right_info">
				<ul>
					<li>活动主题：<a href="/home/user/active_detail?id=<?php echo $v['id'];?>"><?php echo $v[title];?></a></li> 
					<li>活动时间：<?php echo date("Y/m/d",$v['start_time']) ?> - <?php echo date("Y/m/d",$v['end_time']) ?></li>
					<li>活动地点：<?php echo $v['address'];?></li>  
				</ul>
			</div>
			<div class="right_photo">
			<?php foreach ($v[pics] as $k2=>$pic) { ?>
				<img src="<?php echo $pic;?>" style="width:200px; height:200px;"/>
			<?php } ?>
			</div>
			<div class="right_rd">
				热度 <?php echo $v[''];?> 关注度 9999 参与人数 9999
			</div>
		</div>
		<?php } ?>
	 </div>
	 <!-- 用户发帖 结束-->
  </div> 

</div>
<!--身体  结束 --> 

  
<!--底部  开始-->
<div class="footer_bottom">
  <div class="footer">
    <div class="f_item record"> 2015 年 huodongxun.com 闽ICP备12392193219号 </div>
    <div class="f_item share"> 微信 微博 空间 </div>
    <div class="f_item f_menu"> <a href="#" > 关于我们 </a> | <a href="#" >加入我们</a> | <a href="#" >联系我们</a> | <a href="#" >服务条款</a> | <a href="#" >友情链接</a> </div>
  </div> 
</div>
 <!--底部  结束-->
</body>
</html>